<?php
	defined("AT_EXE") or die ("CORE VARIABLE IS NOT DEFINED.");
	function setRoutes($route){

		//$route->setRoute(array("controller" => array("Advert"=>"adverts"),"request"=>new Request(array("advert"=>"display"),array("level"=>array("admin"=>Session::get("admin")!=null?"admin":""),"controller" => array("admin"=>"index") ) ) ) );
		
		$route->setRoute( array(
				"controller" => array( "User" => "logout" ),
				"request" => new Request( array( "user" => "signout" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "User" => "login" ),
				"request" => new Request( array( "user" => "signin" ) ) 
		) );
		
		$route->setRoute( array(
				"controller" => array( "User" => "getsession" ),
				"request" => new Request( array( "user" => "getsession" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "User" => "index" ),
				"request" => new Request( array( "user" => "index" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "User" => "getuser" ),
				"request" => new Request( array( "user" => "getuser" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "User" => "add" ),
				"request" => new Request( array( "user" => "add" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "User" => "addpro" ),
				"request" => new Request( array( "user" => "addpro" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "User" => "viewEdit" ),
				"request" => new Request( array( "user" => "viewedit" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "User" => "delete" ),
				"request" => new Request( array( "user" => "delete" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "User" => "edit" ),
				"request" => new Request( array( "user" => "edit" ) )
		) );
		
		/*page*/
		$route->setRoute( array(
				"controller" => array("Page"=>"index"),
				"request" => new Request( array ("page" => "index" ) )
		) );
		$route->setRoute( array(
				"controller" => array("Page"=>"about"),
				"request" => new Request( array ("page" => "about" ) )
		) );
		$route->setRoute( array(
				"controller" => array("Page"=>"contact"),
				"request" => new Request( array ("page" => "contact" ) )
		) );
		$route->setRoute( array(
				"controller" => array("Page"=>"service"),
				"request" => new Request( array ("page" => "service" ) )
		) );
		$route->setRoute( array(
				"controller" => array("Page"=>"builtout"),
				"request" => new Request( array ("page" => "builtout" ) )
		) );
		$route->setRoute( array(
				"controller" => array("Page"=>"wwd"),
				"request" => new Request( array ("page" => "wwd" ) )
		) );
		$route->setRoute( array(
				"controller" => array("Page"=>"townhouse"),
				"request" => new Request( array ("page" => "townhouse" ) )
		) );
		$route->setRoute( array(
				"controller" => array("Page"=>"restoration"),
				"request" => new Request( array ("page" => "restoration" ) )
		) );
		$route->setRoute( array(
				"controller" => array("Page"=>"gallery"),
				"request" => new Request( array ("page" => "gallery" ) )
		) );
		$route->setRoute( array(
				"controller" => array("Page"=>"flats"),
				"request" => new Request( array ("page" => "flats" ) )
		) );
		$route->setRoute( array(
				"controller" => array("Page"=>"duplex"),
				"request" => new Request( array ("page" => "duplex" ) )
		) );
		$route->setRoute( array(
				"controller" => array("Page"=>"designanddecor"),
				"request" => new Request( array ("page" => "designanddecor" ) )
		) );
		$route->setRoute( array(
				"controller" => array("Page"=>"mfc"),
				"request" => new Request( array ("page" => "mfc" ) )
		) );
		/*end page*/
		$route->setRoute( array(
				"controller" => array( "Page" => "account" ),
				"request" => new Request( array( "page" => "account" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Task" => "addpro" ),
				"request" => new Request( array( "task" => "addpro" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Task" => "gettasks" ),
				"request" => new Request( array( "task" => "gettasks" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Task" => "index" ),
				"request" => new Request( array( "task" => "index" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Task" => "gettask" ),
				"request" => new Request( array( "task" => "gettask" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Task" => "add" ),
				"request" => new Request( array( "task" => "add" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Task" => "edit" ),
				"request" => new Request( array( "task" => "edit" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Task" => "projecttasks" ),
				"request" => new Request( array( "task" => "ptasks" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Task" => "delete" ),
				"request" => new Request( array( "task" => "delete" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Task" => "editpro" ),
				"request" => new Request( array( "task" => "editpro" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Dairy" => "index" ),
				"request" => new Request( array( "dairy" => "index" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "Dairy" => "add" ),
				"request" => new Request( array( "dairy" => "add" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "Dairy" => "save" ),
				"request" => new Request( array( "dairy" => "save" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "Dairy" => "remove" ),
				"request" => new Request( array( "dairy" => "remove" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "Dairy" => "edit" ),
				"request" => new Request( array( "dairy" => "edit" ) )
		) );

		$route->setRoute( array(
				"controller" => array( "Dairy" => "editpage" ),
				"request" => new Request( array( "dairy" => "editpage" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Dairy" => "load" ),
				"request" => new Request( array( "dairy" => "load" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "RequestTask" => "index" ),
				"request" => new Request( array( "requesttask" => "index" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "ClientProfile" => "index" ),
				"request" => new Request( array( "profile" => "index" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "ClientProfile" => "add" ),
				"request" => new Request( array( "profile" => "add" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "ClientProfile" => "addpro" ),
				"request" => new Request( array( "profile" => "addpro" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "ClientProfile" => "getProfile" ),
				"request" => new Request( array( "profile" => "getprofile" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "ClientProfile" => "edit" ),
				"request" => new Request( array( "profile" => "edit" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "ClientProfile" => "editPro" ),
				"request" => new Request( array( "profile" => "editpro" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "ClientProfile" => "delete" ),
				"request" => new Request( array( "profile" => "delete" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "ClientProfile" => "getClients" ),
				"request" => new Request( array( "profile" => "clients" ) )
		) );
		/*Start Request task*/
		
		$route->setRoute( array(
				"controller" => array( "RequestTask" => "addPro" ),
				"request" => new Request( array( "requesttask" => "addpro" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "RequestTask" => "save" ),
				"request" => new Request( array( "requesttask" => "save" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "RequestTask" => "editPro" ),
				"request" => new Request( array( "requesttask" => "editpro" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "RequestTask" => "editpage" ),
				"request" => new Request( array( "requesttask" => "editpage" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "RequestTask" => "delete" ),
				"request" => new Request( array( "requesttask" => "delete" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "RequestTask" => "load" ),
				"request" => new Request( array( "requesttask" => "load" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "RequestTask" => "gettasks" ),
				"request" => new Request( array( "requesttask" => "gettasks" ) )
		) );
		/* PROJECT */
		$route->setRoute( array(
				"controller" => array( "Project" => "index" ),
				"request" => new Request( array( "project" => "index" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "Project" => "load" ),
				"request" => new Request( array( "project" => "load" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "Project" => "add" ),
				"request" => new Request( array( "project" => "add" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Project" => "update" ),
				"request" => new Request( array( "project" => "update" ) )
		) );
		
		$route->setRoute( array(
				"controller" => array( "Project" => "save" ),
				"request" => new Request( array( "project" => "save" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "Project" => "edit" ),
				"request" => new Request( array( "project" => "edit" ) )
		) );
		$route->setRoute( array(
				"controller" => array( "Page" => "setlanguage" ),
				"request" => new Request( array( "set" => "lang" ) )
		) );
		/*End Request task*/
		
		/* END GALLERY PATH */
	return $route;
	}
